#!/bin/sh

userresources="${HOME}/.Xresources"
usermodmap="${HOME}/.Xmodmap"
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f "${sysresources}" ] && xrdb -merge "${sysresources}"
[ -f "${sysmodmap}" ] && xmodmap "${sysmodmap}"
[ -f "${userresources}" ] && xrdb -merge "${userresources}"
[ -f "${usermodmap}" ] && xmodmap "${usermodmap}"

# Start some programs
setxkbmap -model pc105 -layout us -variant altgr-intl
amixer sset Master unmute
hsetroot -fill "${HOME}/wallpapers/slackware.jpg"
xcompmgr -n &
light -S 75
rfkill unblock bluetooth
qtfm-tray &

# Start the window manager:
exec qpwm
